package com.ruoyi.lab.mapper;

import com.ruoyi.lab.domain.JacTestOutline;
import com.ruoyi.lab.domain.JacTestProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * projectMapper接口
 * 
 * @author ruoyi
 * @date 2021-04-06
 */
public interface JacTestProjectMapper 
{
    /**
     * 查询project
     * 
     * @param id projectID
     * @return project
     */
    public JacTestProject selectJacTestProjectById(Long id);




    public List<JacTestProject> selectJacTestProjectByItemcode(Long itemcode);

    /**
     * 查询project列表
     * 
     * @param jacTestProject project
     * @return project集合
     */
    public List<JacTestProject> selectJacTestProjectList(JacTestProject jacTestProject);

    /**
     * 查询project列表
     *
     * @param itemcode project
     * @return project集合
     */
    public List<JacTestProject> selectJacTestProjectListNew(Long itemcode);

    /**
     * 查询project列表
     *
     * @param projectlist project
     * @return project集合
     */
    public List<JacTestProject> selectJacTestProject(List<JacTestProject> projectlist);

    /**
     * 查询project列表
     *
     * @param itemcode project
     * @return project集合
     */
    public List<JacTestProject> selectJacTestProjectListNewTwice(@Param("user_id")String user_id, @Param("itemcode")Long itemcode);

    /**
     * 新增project
     * 
     * @param jacTestProject project
     * @return 结果
     */
    public int insertJacTestProject(JacTestProject jacTestProject);
    public boolean experimentsiteIsResearch(String site);
    /**
     * 修改project
     * 
     * @param jacTestProject project
     * @return 结果
     */
    public int updateJacTestProject(JacTestProject jacTestProject);

    /**
     * 删除project
     * 
     * @param id projectID
     * @return 结果
     */
    public int deleteJacTestProjectById(Long id);
    public int deleteJacTestProjectByItemCode(Long itemcode);

    /**
     * 批量删除project
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteJacTestProjectByIds(String[] ids);
    public List<JacTestProject> selectJacTestProjectListNewDouble(Long itemcode);
    public List<JacTestProject> selectJacTestProjectListPro(Long itemcode);
    /**
     * 查询project列表
     *
     * @param itemcode project
     * @return project集合
     */
    public List<JacTestProject> selectJacTestProjectListN(Long itemcode);

    /**
     * 查询project列表
     *
     * @param jacTestOutline project
     * @return project集合
     */
    public List<JacTestProject> selectJacTestProjectListTest(JacTestOutline jacTestOutline);
}
